package com.example.novelstory.dao.jzx;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.novelstory.entity.Message;
import org.apache.ibatis.annotations.Mapper;

@Mapper
//@Repository
public interface MessageDao extends BaseMapper<Message> {
////    全查
//    @Select("select * from message")
//    public List<Message> findAll();
////    添加
//    @Insert("INSERT INTO message(content,create_time,uid,status,up,pid,mid,type) VALUES(#{content,jdbcType=VARCHAR},#{create_time,jdbcType=VARCHAR},#{uid,jdbcType=VARCHAR},#{status,jdbcType=VARCHAR},#{up,jdbcType=VARCHAR},#{pid,jdbcType=VARCHAR},#{mid,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR})")
//    public int addMessage(@Param("content") String content, @Param("create_time") String create_time, @Param("uid") String uid, @Param("status") String status, @Param("up") String up, @Param("pid") String pid, @Param("mid") String mid, @Param("type") String type);
////    删除
//    @Delete("delete from message where id=#{id}")
//    public int deleteMessage(int id);
}
